﻿using MediatR;
using RBAC.LuFang.API.Application.Command.deepprocessingCommand;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.deepprocessingCommandHandler
{
    //删除食品安全信息
    public class DelfootPicCommandHandler:IRequestHandler<DelfootPicCommand,int>
    {
        private readonly IdeepprocessingService _depService;

        public DelfootPicCommandHandler(IdeepprocessingService depService)
        {
            _depService = depService;
        }

        public async Task<int> Handle(DelfootPicCommand request, CancellationToken cancellationToken)
        {
            return await _depService.DelfootPic(request.id);
        }
    }
}
